﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Biz_Dal.Biz;

namespace Biz_Dal.Dal
{
    public class DalVourcher
    {

        //Thêm sách
        internal static void insertVourcher(BizVourcher vtDTO)
        {
            DalCommon dal = new DalCommon();
            Vourcher vt = new Vourcher();
            vt.maVourcher = vtDTO.maVourcher;
            vt.giaTri = vtDTO.giaTri;
            dal.BookIdeas_ShopDataContext.Vourchers.InsertOnSubmit(vt);
            dal.BookIdeas_ShopDataContext.SubmitChanges();
        }
    }
}
